package com.example.bailin.giftsay.guide.activity;

import android.content.Intent;
import android.util.Log;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.example.bailin.giftsay.R;
import com.example.bailin.giftsay.baseclass.BaseActivity;

/**
 * Created by bailin on 16/8/23.
 */
public class WebViewActivity extends BaseActivity {

    private WebView webView;

    @Override
    protected int setLayout() {
        return R.layout.activity_webview;
    }

    @Override
    protected void initView() {
        webView = bindView(R.id.webview_id);
    }

    @Override
    protected void initData() {
        Intent intent = getIntent();
        String url1 = intent.getStringExtra("url");
        webView.loadUrl(url1);
        WebSettings settings = webView.getSettings();
        settings.setJavaScriptEnabled(true);

    }
}